package client.communication;

import java.text.SimpleDateFormat;
import java.util.Date;

import client.sharedRessources.Constants;
import client.sharedRessources.Constants.EventType;

public class Log
{
	private EventType event;
	private long time;
	private String comment;
	
	public Log(EventType e, long t, String c)
	{
		event = e;
		time = t;
		comment = c;
	}
	
	public String getEventType()
	{
		return this.event.toString();
	}
	
	public String getTime()
	{
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(time));
	}
	
	public int getCellId()
	{
		return Constants.CellID;
	}
	
	public String getComment()
	{
		return comment;
	}
}
